#include <iostream>
#include<cmath>

using namespace std;
class Shape{
public:
     virtual  void calculateArea(){};
};

class Circle : public Shape{
private:
     double radius;
public:
    Circle(double radius):radius(radius){}
    void calculateArea(){
        cout<<"Circle Area:"<<M_PI*radius*radius<<endl;}
};

class Rectangle :public Shape{
private:
    double length;
    double width;
public:
    Rectangle(double length,double width):length(length),width(width){}
    void calculateArea(){
        cout<<"Rectangle Area:"<<length*width<<endl;}
};

int main()
{
    Shape* shape[2];
    shape[0]=new Circle(2.6);
    shape[1]=new Rectangle(5,6);
    for(Shape* i:shape){
        i->calculateArea();};
}
